var login = $(".login")
var chok = $(".checkboxk")
var email = $(".email")
var password = $(".password")
login.click(function(){
	if(email.val()==""){
		alert("请输入邮箱账号")
	}else{
		if(password.val()==""){
			alert("请输入密码")
		}else{
			if(chok.prop("checked")==false){
				alert("请先确认协议")
			}else{
				$(location).attr("href","../index.html")
			}
		}
	}
	
})